<table cellspacing="1" cellpadding="4" width="100%">
    <tr align="center" valign="top">
        <td width="*" align="center" valign="top"><!-- ######### begin ######### -->
            <div class="Block">
                <div class="searchPanel">
                    <?php $form = $this->beginWidget('CActiveForm', array('id' => 'search', 'method' => 'get')); ?>
                    <table width="100%" cellpadding="4" cellspacing="1" class="tab">
                        <tr class="row">
                            <td width="15%" class="align-right"><?php echo $form->labelEx($model, 'query'); ?>：</td>
                            <td th="90%" class="align-left"><?php echo $form->textField($model, 'query', array('size' => 30)); ?></td>
                        </tr>
                        <tr class="row">
                            <td class="align-right"><?php echo $form->labelEx($model, 'filterDate'); ?>：</td>
                            <td class="align-left"><?php
                    $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                        'name' => 'UserLog[startDate]',
                        'value' => $model->startDate,
                        'options' => array(
                            'showAnim' => 'fold',
                            'dateFormat' => 'yy-mm-dd'
                        ),
                        'htmlOptions' => array(
                            'class' => 'time'
                            )));
                    ?><?php echo $form->error($model, 'startDate'); ?>~<?php
                                $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                                    'name' => 'UserLog[endDate]',
                                    'value' => $model->endDate,
                                    'options' => array(
                                        'showAnim' => 'fold',
                                        'dateFormat' => 'yy-mm-dd'
                                    ),
                                    'htmlOptions' => array(
                                        'class' => 'time'
                                        )));
                    ?><?php echo $form->error($model, 'endDate'); ?></td>
                        </tr>
                        <tr class="rows">
                            <td ></td>
                            <td class="align-left"><?php echo CHtml::submitButton(Yii::t('app', '应用过滤条件'), array('class' => 'btn')); ?></td>
                        </tr>
                    </table>
                    <?php $this->endWidget(); ?>
                </div>
                <div class="BlockBar"><?php echo Yii::t('default', '用户点播历史记录'); ?></div>
                <?php
                $this->widget('zii.widgets.grid.CGridView', array(
                    'id' => 'admin-grid',
                    'cssFile' => Yii::app()->baseurl . '/public/admin/grid.css',
                    'dataProvider' => $model->search,
                    'id' => 'ta',
                    'itemsCssClass' => 'tab',
                    'rowCssClass' => array('rows', 'rows'),
                    'columns' => array(
                        array('name' => 'log_id', 'headerHtmlOptions' => array('width' => '6%')),
                        array('name' => 'log_user_name', 'headerHtmlOptions' => array('width' => '10%')),
                        array('name' => 'log_file_id', 'headerHtmlOptions' => array('width' => '10%'), 'type' => 'html'),
                        array('name' => 'log_server_id', 'headerHtmlOptions' => array('width' => '10%')),
                        array('name' => 'log_create_user_ip', 'headerHtmlOptions' => array('width' => '9%'), 'type' => 'html',),
                        array('name' => 'log_create_time', 'value' => 'date("Y-m-d H:i:s", $data->log_create_time)', 'headerHtmlOptions' => array('width' => '8%')),
                        array(
                            'header' => yii::t('default', '操作'),
                            'class' => 'CButtonColumn',
                            'viewButtonLabel' => yii::t('default', '查看详细信息'),
                            'viewButtonOptions' => array('class' => 'opendialog gridviewurl',
                            //'url'=>$this->createUrl('view',array('id'=>'$data->admin_id')),
                            ),
                            'headerHtmlOptions' => array('width' => '6%'),
                            'updateButtonLabel' => yii::t('default', '修改详细信息'),
                            'updateButtonOptions' => array('class' => 'opendialog gridviewurl',
                            ),
                        ),
                    ),
                        // 'cssFile'=>Yii::app()->request->baseUrl.'/css/base.css',
                ));
                ?>


            </div>
        </td>
    </tr>
</table>
